﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 联系人DTO  2013/08/07 10:33 by chenqiao
    /// </summary>
    [Serializable]
    public class ClientLinkDto
    {
        public Guid? Id { get; set; }
        [Display(Name = "联系人名称：")]
        [Required(ErrorMessage = "{0}不能为空!")]
        public string LinkManNmae { get; set; }
        [Display(Name = "性别：")]
        [Required(ErrorMessage = "{0}不能为空!")]
        public byte Sex { get; set; }
        [Display(Name = "客户名称：")]
        [Required(ErrorMessage = "{0}不能为空!")]
        public System.Guid ClientID { get; set; }
        [Display(Name = "证件类型：")]
        public Nullable<int> CredentialsType { get; set; }//证件类型 来自于码表
        public string CredentialsTypeName { get; set; }//证件类型
        [Display(Name = "证件号码：")]
        public string CredentialsNo { get; set; }
        [Display(Name = "所在部门：")]
        public string Department { get; set; }
        [Display(Name = "职务：")]
        public string CurrentJob { get; set; }
        [Display(Name = "业务负责：")]
        public string BusinessScope { get; set; }
        [Display(Name = "座机电话：")] //这个翻译也太不专业了
        public string StudioCamera { get; set; }
        [Display(Name = "手机：")]
        //[Required(ErrorMessage = "{0}不能为空!")]
        public string MobilePhone { get; set; }
        [Display(Name = "电子邮件：")]
        public string Email { get; set; }
        [Display(Name = "MSN/QQ：")]
        public string MSNQQ { get; set; }
        [Display(Name = "状态：")]
        public int Deleted { get; set; }
        public Nullable<System.Guid> CreateID { get; set; }
        public Nullable<System.DateTime> CreateTime { get; set; }
        public Nullable<System.Guid> UpdateID { get; set; }
        public Nullable<System.DateTime> UpdateDate { get; set; }
        [Display(Name = "备注：")]
        public string Remarks { get; set; }
        public string SexName { get; set; }

        public string ClientName { get; set; }//客户名称
    }
}
